//package com.fuint.common.config;
//
//import com.xkzhangsan.time.constants.Constant;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.ParameterBuilder;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.schema.ModelRef;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.service.Contact;
//import springfox.documentation.service.Parameter;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * Swagger接口文档
// *
// * Created by FSQ
// * CopyRight https://www.fuint.cn
// */
//@Configuration
//public class SwaggerConfig implements WebMvcConfigurer {
//
//     @Bean
//     public Docket createRestApi() {
//         return new Docket(DocumentationType.SWAGGER_2)
//         .apiInfo(apiInfo())
//         .enable(true)
//         .select()
//         .apis(RequestHandlerSelectors.basePackage("com.fuint.module"))
//         .build()
//                 .globalOperationParameters(this.getParameterList());
//     }
//
//     @Bean
//     public ApiInfo apiInfo() {
//         return new ApiInfoBuilder()
//         .title("fuint会员营销系统接口文档")
//         .description("fuint会员营销系统接口文档，“/clientApi”目录接口为会员端相关接口，“/backendApi”目录接口为后台管理端相关接口。")
//         .termsOfServiceUrl("https://www.fuint.cn/")
//         .contact(new Contact("海南延禾信息技术有限公司","https://www.fuint.cn/", "fushengqian@qq.com"))
//         .version("1.0")
//         .build();
//     }
//
//    /**
//     * 添加head参数配置
//     */
//    private List<Parameter> getParameterList() {
//        ParameterBuilder clientIdTicket = new ParameterBuilder();
//        List<Parameter> pars = new ArrayList<Parameter>();
//        clientIdTicket.name("Access-Token").description("token令牌")
//                .modelRef(new ModelRef("string"))
//                .parameterType("header")
//                .required(false).build(); //设置false，表示clientId参数 非必填,可传可不传！
//        pars.add(clientIdTicket.build());
//        return pars;
//    }
//
//}